package com.ku.kill.service;

import com.ku.kill.dataobject.UserDO;
import com.ku.kill.error.BusinessException;
import com.ku.kill.service.model.UserModel;

/**
 * @program: kill2
 * @description:
 * @author: JokerKu
 * @create: 2020-04-02 15:24
 **/
public interface UserService {

    UserModel getUserById(Integer id) throws BusinessException;

    void register(UserModel userModel) throws BusinessException;

    UserModel validateLogin(String name, String telphone) throws BusinessException;

    //从缓存中取User数据
    UserModel getUserByIdInCache(Integer id) throws BusinessException;
}
